package de.szut.events;

import java.util.ArrayList;
import java.util.EventObject;

/**
 * Implementation of ArrayList to hold events.
 * <b>Not</b> threadsafe!
 * @author Marc Huisinga
 *
 * @param <T> - Type of the event
 */
public class EventArrayList<T extends Event> extends ArrayList<T> implements FireableCollection {
	private static final long serialVersionUID = -5469296046185303543L;
	
	public void fireAll(EventObject e) {
		new EventCannoneer<EventArrayList<T>>(this).fire(e);
	}

}
